import axios from "../index.js";
import videoAxios from "../videoAxios.js";
// 已发布命令单数据接口
export const GetResponse = (data) => {
  return axios.request({
    url: "/emergency/emergencyResponse/selectResponse",
    method: "get",
    data: data
  });
};

// 应急事件数据接口
export const GetReportEvent = (data) => {
  return axios.request({
    url: "/emergency/responseHomePage/getResponseEvent",
    method: "get",
    data: data
  });
};
// 应急处置大首页获取灾情信息统计数据
export const GetStatistics = (data) => {
  return axios.request({
    url: "/emergency/infoHomePage/getHomePageInfoListByEventIds",
    method: "get",
    data: data
  });
};
// 处置首页根据响应命令单返回勘察任务
export const getReconnaissanceResponseId = (data) => {
  return axios.request({
    url: "/emergency/emergencySurvey/getReconnaissanceResponseId",
    method: "get",
    data: data
  });
};



export const getResourceReserve = (data) => {
  return axios.request({
    url: "/resource/baseResourceReserve/getResourceReserve",
    method: "get",
    data: data
  });
};


// 监控登录接口
export const videoLogin = (data) => {
  return videoAxios.request({
    url: "/v1/auth/login",
    method: "post",
    data: data
  });
};
// 监控数据接口
export const GetvideoUrl = (data) => {
  return videoAxios.request({
    url: "/v1/access/media/videoPlay",
    method: "get",
    data: data
  });
};

